<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
  <meta charset="UTF-8">
  <title>JavaScript 数据类型</title>
</head>
<body>
<h2>JavaScript 对象</h2>
<p>用花括号来书写。对象属性是 name:value 对，由逗号分隔</p>

<p id="demo"></p>
<script>
  var person={
    firstName : "Bill",
    lastName  : "Gates",
    age       : 62,
    eyeColor  : "blue"
  };

  document.getElementById("demo").innerHTML=person.firstName+" is "+person.age+" years old.";
</script>
</body>
</html>